﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace Zen4SyncDashboard.DAL
{
    public partial class activityType
    {
        /// <summary>
        /// Ids of all the activities of this type in the model.<br/>
        /// For instance all the syncSession activity Ids if this type is SyncSession.
        /// </summary>
        public ObservableCollection<Guid> AvailableActivities { get; private set; }

        public void SetAvailableActivities(IQueryable<Guid> activityIds)
        {
            if (activityIds == null)
                return;

            AvailableActivities = new ObservableCollection<Guid>(activityIds);
        }
    }
}
